package com.woniuxy.commons.service.auth;

import com.woniuxy.commons.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * <P> @Author: ideaAdmin
 * <P> TODO: Interface
 * <P> TODO:远程调用Auth的方法
 * <P> Date: 2022/3/30:15:26
 * <P> Description:
 */
@FeignClient(name = "auth")
public interface AuthService {


    /**
     * <P>Author ideaAdmin
     * <P>TODO:鉴权方法
     * <P>Date 15:28 2022/3/30
     * <P> *
     * <P>* @return com.woniuxy.commons.bean.ResponseResult<java.lang.Object>
     **/
    @GetMapping("/auth/user/hasPerms/{refreshToken}/{perms}")
    public Result hasPerms(@PathVariable("refreshToken") String refreshToken,
                           @PathVariable("perms") String perms);
}
